{ "metadata": { "kernelspec": { "codemirror_mode": { "name": "ipython", "version": 2 }, "display_name": "IPython (Python 2)", "language": "python", "name": "python2" }, "name": "", "signature": "sha256:7dfb60bad8050837b444209197ecee458e8c7be4edff10817ecdbaf61a7040c2" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "#Table of Contents\n", "* [1. Maps](#1.-Maps)\n", "\t* [1.1 Google Geochart](#1.1-Google-Geochart)\n", "\t* [1.2 Google Map Directions](#1.2-Google-Map-Directions)\n", "\t* [1.3 Google Colored Maps](#1.3-Google-Colored-Maps)\n", "* [2. Timelines](#2.-Timelines)\n", "\t* [2.1 Google Timelines](#2.1-Google-Timelines)\n", "\t* [2.2 Timeline JS](#2.2-Timeline-JS)\n", "* [3. Story Maps](#3.-Story-Maps)\n", "* [4. Presentations](#4.-Presentations)\n", "\t* [4.1 Google Slideshows](#4.1-Google-Slideshows)\n", "\t* [4.2 Prezis](#4.2-Prezis)\n", "* [5. Charts and Graphs](#5.-Charts-and-Graphs)\n", "\t* [5.1 Histogram](#5.1-Histogram)\n", "\t* [5.2 Area Chart](#5.2-Area-Chart)\n", "\t* [5.3 Scatter Plot](#5.3-Scatter-Plot)\n", "\t* [5.4 Pie Chart](#5.4-Pie-Chart)\n", "\t* [5.5 Line Chart](#5.5-Line-Chart)\n", "\t* [5.6 Column Chart](#5.6-Column-Chart)\n", "\t* [5.7 Bar Chart](#5.7-Bar-Chart)\n", "\t* [5.8 Motion Chart](#5.8-Motion-Chart)\n", "* [6. Data](#6.-Data)\n", "\t* [6.1 Google Spreadsheets](#6.1-Google-Spreadsheets)\n", "* [7. Videos](#7.-Videos)\n", "* [8. Other Embeddable Visuals](#8.-Other-Embeddable-Visuals)\n", "\t* [8.1 National Weather Service](#8.1-National-Weather-Service)\n", "\t* [8.2 Wikipedia Articles](#8.2-Wikipedia-Articles)\n", "* [9. Document Collaboration](#9.-Document-Collaboration)\n", "\t* [9.1 Commenting By Disqus](#9.1-Commenting-By-Disqus)\n", "* [10. Bibliographic Support](#10.-Bibliographic-Support)\n", "\t* [10.1 Internal BibTex Database](#10.1-Internal-BibTex-Database)\n", "\t* [10.2 Example Text With In-Line Citations](#10.2-Example-Text-With-In-Line-Citations)\n", "\t* [10.3 Example References List](#10.3-Example-References-List)\n" ] }, { "cell_type": "code", "collapsed": false, "input": [ "from calico.widgets import GoogleChart\n", "from IPython.display import display, HTML" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 13 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "1. Maps" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "1.1 Google Geochart" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For more information on how to make Geoharts, you can learn more about Google Charts at the [Calico Project Wiki](calicoproject.org/ICalico)" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"GeoChart\", ['Country', 'Variable Measured'], \n", " [['United States', 20], \n", " ['United Kingdom', 20],\n", " ['France', 20], \n", " ['China', 20], \n", " ['Poland', 10], \n", " ['Canada', 10], \n", " ['Australia', 10],\n", " ['New Zealand', 10], \n", " ['Yugoslavia', 10], \n", " ['Greece', 10], \n", " ['Netherlands', 10], \n", " ['Belgium', 10], \n", " ['South Africa', 10], \n", " ['Norway', 10], \n", " ['Czech Republic', 10], \n", " ['Slovakia', 10], \n", " ['Ethiopia', 10], \n", " ['Brazil', 10], \n", " ['Denmark', 10], \n", " ['Luxembourg', 10], \n", " ['Cuba', 10], \n", " ['Mexico', 10], \n", " ['Russia', 20],\n", " ['Ukraine', 20], \n", " ['Uzbekistan', 20], \n", " ['Kazakhstan', 20], \n", " ['Belarus', 20], \n", " ['Georgia', 20], \n", " ['Azerbaijan', 20], \n", " ['Moldova', 20], \n", " ['Kirghizstan', 20], \n", " ['Armenia', 20], \n", " ['Latvia', 20], \n", " ['Estonia', 20], \n", " ['Lithuania', 20], \n", " ['Turkmenistan', 20], \n", " ['Tajikistan', 20], \n", " ['Germany', 100], \n", " ['Japan', 100], \n", " ['Italy', 100], \n", " ['Hungary', 100], \n", " ['Romania', 100], \n", " ['Bulgaria', 100]])" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 12, "text": [ "" ] } ], "prompt_number": 12 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "1.2 Google Map Directions" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "\n" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 14 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "1.3 Google Colored Maps" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 26 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "4.2 Prezis" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 27 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "5. Charts and Graphs" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For more information on these Google Charts go to the [Calico Project Wiki](calicoproject.org/ICalico)" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.1 Histogram" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"Histogram\", [\"Item 1\", \"Item 2\", \"Item 3\"], [(1, 10, 25), (2, 50, 25), (3, 5, 25)])" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 31, "text": [ "" ] } ], "prompt_number": 31 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.2 Area Chart" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"AreaChart\", [], [6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 32, "text": [ "" ] } ], "prompt_number": 32 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.3 Scatter Plot" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"ScatterChart\", [], [6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 34, "text": [ "" ] } ], "prompt_number": 34 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.4 Pie Chart" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"PieChart\", [], [(\"Pie I have eaten\", .33), (\"Pie I have not yet eaten\", .67)])\n", "\n" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 36, "text": [ "" ] } ], "prompt_number": 36 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.5 Line Chart" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"LineChart\", [], [6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 34, "text": [ "" ] } ], "prompt_number": 34 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.6 Column Chart" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"ColumnChart\", [], [6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 36, "text": [ "" ] } ], "prompt_number": 36 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.7 Bar Chart" ] }, { "cell_type": "code", "collapsed": false, "input": [ "GoogleChart(\"BarChart\", [], [6, 7, 8, 9, 3, 2, 6])" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", "\n", "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 39, "text": [ "" ] } ], "prompt_number": 39 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "5.8 Motion Chart" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 16 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "6. Data" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "6.1 Google Spreadsheets" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "\n", "" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 17 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "7. Videos" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "\n", "" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 18 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "8. Other Embeddable Visuals" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "8.1 National Weather Service" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "\n", "" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 19 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "8.2 Wikipedia Articles" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 20 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "9. Document Collaboration" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "9.1 Commenting By Disqus" ] }, { "cell_type": "code", "collapsed": false, "input": [ "%%html\n", "\n", "
\n", " \n", " \n", " comments powered by Disqus" ], "language": "python", "metadata": { "format": "row" }, "outputs": [ { "html": [ "\n", "
\n", " \n", " \n", " comments powered by Disqus" ], "metadata": {}, "output_type": "display_data", "text": [ "" ] } ], "prompt_number": 21 }, { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "10. Bibliographic Support" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "10.1 Internal BibTex Database" ] }, { "cell_type": "raw", "metadata": {}, "source": [ "" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "10.2 Example Text With In-Line Citations" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Rebuilding Calico after Japanese occupation took many years [(Kepps, 2002)](#cite-calicoww2:2).\n", "Anti-Welfare politics have risen in popularity in Calico over the last three decades [(Jacob, 2010)](#cite-wellfarecut).\n", "Calico was a Japanese puppet state during WWII [(French, 1997)](#cite-calicoww2:1).\n" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "10.3 Example References List" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "[^](#ref-1) Kepps, Milo. 2002. _Rebuilding Calico After Japanese Occupation_.\n", "\n", "[^](#ref-2) Jacob, Bernadette. 2010. _Our Greatest Threat: The Rise of Anti-Wellfare Politics in Calico in the 21st Century_.\n", "\n", "[^](#ref-3) French, Viola. 1997. _Calico and WWII: Untold History_.\n", "\n" ] }, { "cell_type": "code", "collapsed": false, "input": [ "from calico.utils import ottobib\n", "ottobib(\"9780807857618\")" ], "language": "python", "metadata": {}, "outputs": [ { "metadata": {}, "output_type": "pyout", "prompt_number": 2, "text": [ "'@Book{block2006rape,\\n author = {Block, Sharon},\\n title = {Rape and sexual power in early America},\\n publisher = {University of North Carolina Press},\\n year = {2006},\\n address = {Chapel Hill},\\n isbn = {9780807857618}\\n }'" ] } ], "prompt_number": 2 }, { "cell_type": "code", "collapsed": false, "input": [ "ottobib(\"0-471-37568-3\")" ], "language": "python", "metadata": {}, "outputs": [ { "metadata": {}, "output_type": "pyout", "prompt_number": 3, "text": [ "'@Book{ifrah2000the,\\n author = {Ifrah, Georges},\\n title = {The universal history of numbers : from prehistory to the invention of the computer},\\n publisher = {Wiley},\\n year = {2000},\\n address = {New York},\\n isbn = {0471375683}\\n }'" ] } ], "prompt_number": 3 }, { "cell_type": "markdown", "metadata": {}, "source": [ "Citation [(Block, 2006)](#cite-block2006rape)." ] }, { "cell_type": "code", "collapsed": true, "input": [], "language": "python", "metadata": {}, "outputs": [] } ], "metadata": {} } ] }